function Person(name,age){
	this.name = name;
	this.age = age;
	this.sayHello = sayHello;
}
function sayHello(){
	console.log('hello')
}
var p1 = new Person('zhangsan',12);
var p2 = new Person('lisi',13);
console.log(p1,p2)


function Dog(name,age){
	this.name = name;
	this.age = age;
}

var d1 = new Dog('erha',3)
console.log(d1)

console.log(p1 instanceof Person)
console.log(p1 instanceof Object)
console.log(p1 instanceof Dog)
console.log(p1.sayHello == p2.sayHello)


